package com.ruoyi.server.person;

import cn.hutool.core.date.DateUtil;
import com.ruoyi.common.core.domain.model.LoginUser;

import java.time.LocalDateTime;

/**
 *  开放用户
 *
 * @author OpenACloud
 * @create 2024/6/5 15:45
 */
public class PassageWayUser extends BaseLiveUser{

    public PassageWayUser() {

    }



    public PassageWayUser(LoginUser userOnline) {
        super.setUserId(userOnline.getUserId());
        super.setToken(userOnline.getToken());
        super.setUserName(userOnline.getUsername());
        super.setWaterTime(DateUtil.toLocalDateTime(userOnline.getUser().getLoginDate()));
    }
}
